package com.yl.users.mapper

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.yl.users.entity.SysTableFieldPerm
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param
@Mapper
interface SysTableFieldPermMapper : BaseMapper<SysTableFieldPerm>  {

    /**
     * 查询是否有相同的code
     * @param perm
     * @return
     */
    fun selectCountByCode(perm: SysTableFieldPerm): Int

    /**
     * 查询所有字段权限 2层
     * @return
     */
    fun selectFieldTree(): List<SysTableFieldPerm>

}